package com.yanhua.transaction.annotation;

import com.yanhua.transaction.common.util.TransactionConst;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 分布式事务注解
 *
 * @author zero
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface YhTransactional {
    /*
     * 事务状态
     */
    TransactionConst.TransactionState value() default TransactionConst.TransactionState.partake;
}
